<?php
//	echo sha1('HOPElight007+wx934cb7f852f6c585');
//	require_once('wxbrower.php');
	require_once("../includes/public.inc.php");
	$s = isset($_GET['s'])?$_GET['s']:'';
	$act = isset($_GET['act'])?$_GET['act']:'';
	$openid = isset($_GET['openid'])?$_GET['openid']:'';
//	$precord = array();
//	
//	$pdh = mysql_query("select * from provinces");
//	while($row = mysql_fetch_assoc($pdh))
//	{
//		$precord[] = $row;
//	}	
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,user-scalable=no,maximum-scale=1,initial-scale=1">
<title>导购注册</title>
<link rel="stylesheet" type="text/css" href="css/register.css" media="all">
<script>
	$(function(){
		$('#submit').click(function(){
			if (!$('#userID').val())
			{
				alert("请输入用户名！");return false;
			}
			if (!$('#userName').val())
			{
				alert("请输入登录密码！如果忘记请联系管理员！");return false;
			}
			if (!$('#userPWD').val())
			{
				alert("请输入密码");return false;
			}
			if (!$('#ReuserPWD').val())
			{
				alert("请确认密码");return false;
			}
			if ($('#userPWD').val()!=$('#ReuserPWD').val())
			{
				alert("两次输入密码不一致");return false;
			}
			if (!$('#address').val())
			{
				alert("请认真填写详细地址,该地址将用于礼品的配送！");return false;
			}
		});
	});
</script>
</head>
<body style="background-color:#e50065;">
<div class="pz-css"  style="background:url(./images/yalina.png);">
	<ul class="top-tool">
		<li class="title">导购注册</li>
		<li class="back"><a href="javascript:history.go(-1)"></a>
		</li>
<!--		<li class="home"><a href="index.php"></a></li>-->
	</ul>
	<form action="reg.php?act=user&s=<?=$s?>&openid=<?=$openid?>" id="submit_form" method="post">
	 		<div class="pz-panel">
			<h3>导购注册：</h3>
			<p style="color:#e50065;">请认真注册以下内容，方便您积分、红包领取等。</p>
		</div>

	<div class="pz-panel" style="background-color: rgb(255, 255, 255);">
		<table class="list" border="0" cellspacing="0" width="100%">
		<tbody><tr>
			<td style="color: red;" width="90">手机号码：</td>
			<td align="left"><span class="span12"><input maxlength="20" placeholder="号码将为您的登录帐号*必填" id="userID" name="user" type="tel"></span></td>
		</tr>
		<tr>
			<td>真实姓名：</td>
			<td align="left"><span class="span12"><input value="" placeholder="*必填" maxlength="20" id="userName" name="userName" type="text"></span></td>
		</tr>
		<tr>
			<td>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
			<td align="left">&nbsp;&nbsp;<input value="男" checked="checked" name="rdoSex" type="radio">
					  男&nbsp;&nbsp;<input value="女" name="rdoSex" type="radio">女</td>
		</tr>
		<tr>
			<td>输入密码：</td>
			<td align="left"><span class="span12"><input maxlength="20" value="" id="userPWD" name="password" type="password"></span></td>
		</tr>
		<tr>
			<td>确定密码：</td>
			<td align="left"><span class="span12"><input maxlength="20" value="" id="ReuserPWD" name="password2" type="password"></span></td>
		</tr>
		<tr>
			<td>省&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;份：</td>
			<td align="left">
				<span class="span12">
					<select id="selProvince" name="province" onchange="provinceChange();"></select>
				</span>
			</td>
		</tr>
		<tr>
			<td>市&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;区：</td>
			<td align="left">
			<span class="span12">
				<select id="selCity" name="city"></select> 
			</span></td>
		</tr>
		<tr>
			<td>详细地址：</td>
			<td align="left"><span class="span12"><input value="" placeholder="" id="address" name="address" type="text"></span></td>
		</tr>
		<tr>
			<td>联系我们：</td>
			<td align="left"><span class="span12"><a href="tel:4008181119">400-818-1119</a></span></td>
		</tr>
		</tbody></table>
	</div>
	
     <input value="0"  name="credit" type="hidden">  <input value="0"  name="s" type="hidden">
        <input value="1"  name="yz" type="hidden">
	<div class="group">
		<div class="span12"><button class="red" type="submit" style="background:#13d6f9;" name="submit" id="submit">同意会员服务协议并注册</button></div>
	</div>
	</form>
	<form action="login.php" id="login_form" method="get">
		<input value="<?=$s?>"  name="s" type="hidden">
		<input value="hy"  name="type" type="hidden">
		<input value="<?=$openid?>"  name="openid" type="hidden">
		<div class="group">
		<div class="span12">
			<button class="yellow" style="background:#91d400;border:1px solid #91d400;" type="submit">已注册用户请登录</button>
		</div></div>
	</form>
	<div class="pz-panel">
		<h3>温馨提示：</h3>
		<p>尊敬的用户，您好！欢迎注册成为本公司的导购员，请仔细阅读<a style="color: rgb(51, 153, 255);" href="themes/shuoming.html">《 会员注册服务使用协议 》</a></p>
	</div>
</div>	
   <!-- <div class="pz-panel">
		<h3>成为导购员请点击以下注册：</h3>
		<p>尊敬的导购员！欢迎注册成为本公司的导购员，<a style="color: rgb(51, 153, 255);" href="register_daogou.php?s=0">《 成为导购 》</a></p>
	</div>
</div>-->
<script src="js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="js/sel.js"   charset="gb2312"></script>
<script type="text/javascript">
$(function() {
	
});
//	function getSelectVal(){ 
//    	$.getJSON("regajax.php",{province:$("#province").val()},function(json){ 
//        var city = $("#city"); 
//        $("option",city).remove(); //清空原有的选项 
//        $.each(json,function(index,array){ 
//            var option = "<option value='"+array['cityid']+"'>"+array['city'])+"</option>"; 
//            city.append(option); 
//        }); 
//    }); 
//
//	$(function() {
//		getSelectVal(); 
//	    $("#province").change(function(){ 
//	        getSelectVal(); 
//	    });
//	});
</script>
</body>
</html>